package com.relytosoft.mizar.media.system.api.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * DistrictFeignVo
 *
 * @Author SunLi
 * @Date: 2022/4/20 10:47
 * @Version 1.0
 */
public class DistrictFeignDto implements Serializable {

    private static final long serialVersionUID = -597001034253694465L;
    /**
     * 区域ID
     */
    @ApiModelProperty(value = "区域ID")
    @TableField(exist = false)
    private Integer id;

    /**
     * 父区域ID
     */
    @ApiModelProperty(value = "父区域ID")
    @TableField(exist = false)
    private Integer parentId;

    /**
     * 深度路径
     */
    @ApiModelProperty(value = "深度路径")
    @TableField(exist = false)
    private String depthPath;

    /**
     * 深度
     */
    @ApiModelProperty(value = "深度")
    @TableField(exist = false)
    private Integer depth;
    /**
     * 区域名称
     */
    @ApiModelProperty(value = "区域名称")
    @TableField(exist = false)
    private String name;
    /**
     * 区域编码
     */
    @ApiModelProperty(value = "区域编码")
    @TableField(exist = false)
    private String code;

    /**
     * 安全级别
     */
    @ApiModelProperty(value = "安全级别")
    @TableField(exist = false)
    private String securityLevelName;

    /**
     * 安全级别颜色
     */
    @ApiModelProperty(value = "安全级别颜色")
    @TableField(exist = false)
    private String securityLevelColor;

    /**
     * 第三方平台区域ID
     */
    @ApiModelProperty(value = "第三方平台区域ID")
    @TableField(exist = false)
    private String platformId;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @TableField(exist = false)
    private Integer sort;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<DistrictFeignDto> children;

    public List<DistrictFeignDto> getChildren() {
        return children;
    }

    public void setChildren(List<DistrictFeignDto> children) {
        this.children = children;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getDepthPath() {
        return depthPath;
    }

    public void setDepthPath(String depthPath) {
        this.depthPath = depthPath;
    }

    public Integer getDepth() {
        return depth;
    }

    public void setDepth(Integer depth) {
        this.depth = depth;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSecurityLevelName() {
        return securityLevelName;
    }

    public void setSecurityLevelName(String securityLevelName) {
        this.securityLevelName = securityLevelName;
    }

    public String getSecurityLevelColor() {
        return securityLevelColor;
    }

    public void setSecurityLevelColor(String securityLevelColor) {
        this.securityLevelColor = securityLevelColor;
    }

    public String getPlatformId() {
        return platformId;
    }

    public void setPlatformId(String platformId) {
        this.platformId = platformId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "DistrictFeignVo{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", depthPath='" + depthPath + '\'' +
                ", depth=" + depth +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", securityLevelName='" + securityLevelName + '\'' +
                ", securityLevelColor='" + securityLevelColor + '\'' +
                ", platformId='" + platformId + '\'' +
                ", sort=" + sort +
                '}';
    }
}
